package com.app.medicalcontrol.bean;

public class BasePageInfoBean extends BasisBean {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * page : 1
     * pagesize : 10
     * total_page : 103
     * count : 1025
     */

//    private int page;
//    private int pagesize;
//    private int total_page;
//    private int count;

//  	"current_page": 1,
//            "per_page": 10,
//            "last_page": 1,
//            "total": 1,

    private int current_page;
    private int per_page;
    private int last_page;
    private int total;

    public int getCurrent_page() {
        return current_page;
    }

    public void setCurrent_page(int current_page) {
        this.current_page = current_page;
    }

    public int getPer_page() {
        return per_page;
    }

    public void setPer_page(int per_page) {
        this.per_page = per_page;
    }

    public int getLast_page() {
        return last_page;
    }

    public void setLast_page(int last_page) {
        this.last_page = last_page;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public boolean hasNextPage() {
        return current_page < last_page;
//		return getPage()*getPagesize() < getCount();
//		return true;
    }

    public int getNextPage() {
        return getCurrent_page() + 1;
    }

}
